
	<div class="block">

<div id= 'content'>
	<h2>更改用户:<?php echo $user->name?>（仅限职位与权限）：</h2>
	
<br>

<div class="done" style="display:none;">
<b>操作成功</b>

</div>

    <div class="form">
    	<b>更改列表</b>
        <form action="api/" method="post">
        	<input type="hidden" id='action' name="action" value="alter_user" />
        	<input type="hidden" id='id' name="id" value=<?php echo $user->id?> />


   <div class="element" style="clear:both;">
        <label class="form">权限</label>
        
        <div class='checkbox'>
    <input type="radio" name="autority" value="pick" checked="checked">自选<br>
    <div>
    <?php
    foreach($allOrganizations as $organization){
    		$organization->name;
	?>
	    <input type="checkbox" name="pick[]" value="<?php echo $organization->id;?>"><?php echo $organization->name;?><br>
		
	<?php	
    }
    ?>
        <input type="checkbox" name="pick[]" value="management">管理<br>
	    <input type="checkbox" name="pick[]" value="accounting">会计<br>

    </div>
    <input type="radio" name="autority" value="full">全部<br>
    <input type="radio" name="autority" value="none">无权限
     </div>

    </div>
    
   <div class="element">
        <label class="form">职位（任意）</label>
        <input type="text" id="position" name="position" class="text" value='<?php echo $user->position;?>' >
    </div>

    <div class="element">
<input type="submit" value="递交" />
        <div class="loading"></div>
    </div>
    </form>
    </div>
    </div>
<div class="clear"></div>
	</div>